<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="/struts-tags" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <title>webrx-7031633</title>
</head>
<body>
<h2>显示图书信息</h2>
<c:iterator value="book" var="i">
    <%--两种方式都可以--%>
  <%--  <h3>${i.id}</h3>--%>

    <%--value="name"相当于book.name--%>
    <s:property value="name" />&nbsp; <a href="delete?id=${i.id}">删除</a><br>
</c:iterator>
<hr>
<a href="add">添加书籍</a>
</body>
</html>
